package com.jason.www.controller;


import com.jason.www.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author JasonChoi
 * @since 2018-06-29
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/test")
    public User test(){
        User user = new User();
        user.setLoginName("897330838@qq.com");
        user.setUserBirth(new Date());
        return user;
    }
}

